<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column type="index" width="180" label="序号" />
      <el-table-column prop="title" label="动态标题" width="530" />
      <el-table-column prop="publishDatetime" label="发布时间" />
    </el-table>
  </div>
</template>
  
  <script setup>
import { ref, onMounted } from "vue";
import { listById } from "../api/pingtai";

const tableData = ref({});

const created = async () => {
  const that = this;
  that.id = that.$route.query.id;
  alert(that.id)
};

const getById = async () => {
  const { code, data, message } = await listById(that.id);
};

onMounted(() => {
  created();
  getById();
});
</script>
  
  <style>
</style>